<template>
  <div class="nav-bar">
    <div class="left-nav"><slot name="left"></slot></div>
    <div class="center-nav"><slot name="center"></slot></div>
    <div class="right-nav"><slot name="right"></slot></div>
  </div>
</template>

<script>
export default {
  name: "NavBar"
}
</script>

<style lang="scss" scoped>
  .nav-bar{
    display: flex;
    line-height: 44px;
    text-align: center;
    box-shadow:10px 0 10px #ccc;
    color:#fff;
    .left-nav,.right-nav {
      width:60px;
    }
    .center-nav {
      flex:1;
    }
  }
</style>